<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  User: Dong Zou Date: 3/4/2016 Time: 11:59 AM
--%>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <title>Login -YBP- BIG Data Center</title>
</head>
<body>
<div class="index">
    <h3 class="text-info">用户登录</h3>
    <c:if test="${param.error != null}">
        <div class="alert alert-danger">
                ${sessionScope.SPRING_SECURITY_LAST_EXCEPTION.message}<br>
                ${sessionScope.SPRING_SECURITY_LAST_EXCEPTION.printStackTrace()}
        </div>
    </c:if>
    <c:if test="${message != null}">
        <div class="alert alert-success">${message}</div>
    </c:if>
    <form class="form-signin" action="${host}/login" method="post">
        <div class="input-group margin-bottom-sm">
            <span class="input-group-addon"><i class="fa fa-user fa-fw"></i></span>
            <input class="form-control" type="email"  name="username" placeholder="请输入邮箱...">
        </div>
        <div class="input-group">
            <span class="input-group-addon"><i class="fa fa-lock fa-fw"></i></span>
            <input class="form-control" type="password" name="password" placeholder="请输入密码...">
        </div>
        <%--<div class="checkbox">--%>
            <%--<label>--%>
                <%--<input type="checkbox" name="remember-me"> Remember me--%>
            <%--</label>--%>
        <%--</div>--%>
        <button class="btn btn-lg btn-primary btn-block" type="submit">登 录</button>
    </form>
</div>
</body>
</html>
